/*
 * XML Type:  XListBox
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XListBox
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget;


/**
 * An XML XListBox(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public interface XListBox extends com.seedwill.xul.widget.XInput
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XListBox.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xlistbox7239type");
    
    /**
     * Gets array of all "items" elements
     */
    com.seedwill.xul.core.XPairItem[] getItemsArray();
    
    /**
     * Gets ith "items" element
     */
    com.seedwill.xul.core.XPairItem getItemsArray(int i);
    
    /**
     * Returns number of "items" element
     */
    int sizeOfItemsArray();
    
    /**
     * Sets array of all "items" element
     */
    void setItemsArray(com.seedwill.xul.core.XPairItem[] itemsArray);
    
    /**
     * Sets ith "items" element
     */
    void setItemsArray(int i, com.seedwill.xul.core.XPairItem items);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "items" element
     */
    com.seedwill.xul.core.XPairItem insertNewItems(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "items" element
     */
    com.seedwill.xul.core.XPairItem addNewItems();
    
    /**
     * Removes the ith "items" element
     */
    void removeItems(int i);
    
    /**
     * Gets array of all "defaultSelectedIndex" elements
     */
    int[] getDefaultSelectedIndexArray();
    
    /**
     * Gets ith "defaultSelectedIndex" element
     */
    int getDefaultSelectedIndexArray(int i);
    
    /**
     * Gets (as xml) array of all "defaultSelectedIndex" elements
     */
    org.apache.xmlbeans.XmlInt[] xgetDefaultSelectedIndexArray();
    
    /**
     * Gets (as xml) ith "defaultSelectedIndex" element
     */
    org.apache.xmlbeans.XmlInt xgetDefaultSelectedIndexArray(int i);
    
    /**
     * Returns number of "defaultSelectedIndex" element
     */
    int sizeOfDefaultSelectedIndexArray();
    
    /**
     * Sets array of all "defaultSelectedIndex" element
     */
    void setDefaultSelectedIndexArray(int[] defaultSelectedIndexArray);
    
    /**
     * Sets ith "defaultSelectedIndex" element
     */
    void setDefaultSelectedIndexArray(int i, int defaultSelectedIndex);
    
    /**
     * Sets (as xml) array of all "defaultSelectedIndex" element
     */
    void xsetDefaultSelectedIndexArray(org.apache.xmlbeans.XmlInt[] defaultSelectedIndexArray);
    
    /**
     * Sets (as xml) ith "defaultSelectedIndex" element
     */
    void xsetDefaultSelectedIndexArray(int i, org.apache.xmlbeans.XmlInt defaultSelectedIndex);
    
    /**
     * Inserts the value as the ith "defaultSelectedIndex" element
     */
    void insertDefaultSelectedIndex(int i, int defaultSelectedIndex);
    
    /**
     * Appends the value as the last "defaultSelectedIndex" element
     */
    void addDefaultSelectedIndex(int defaultSelectedIndex);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "defaultSelectedIndex" element
     */
    org.apache.xmlbeans.XmlInt insertNewDefaultSelectedIndex(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "defaultSelectedIndex" element
     */
    org.apache.xmlbeans.XmlInt addNewDefaultSelectedIndex();
    
    /**
     * Removes the ith "defaultSelectedIndex" element
     */
    void removeDefaultSelectedIndex(int i);
    
    /**
     * Gets array of all "defaultSelectedItem" elements
     */
    com.seedwill.xul.core.XPairItem[] getDefaultSelectedItemArray();
    
    /**
     * Gets ith "defaultSelectedItem" element
     */
    com.seedwill.xul.core.XPairItem getDefaultSelectedItemArray(int i);
    
    /**
     * Returns number of "defaultSelectedItem" element
     */
    int sizeOfDefaultSelectedItemArray();
    
    /**
     * Sets array of all "defaultSelectedItem" element
     */
    void setDefaultSelectedItemArray(com.seedwill.xul.core.XPairItem[] defaultSelectedItemArray);
    
    /**
     * Sets ith "defaultSelectedItem" element
     */
    void setDefaultSelectedItemArray(int i, com.seedwill.xul.core.XPairItem defaultSelectedItem);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "defaultSelectedItem" element
     */
    com.seedwill.xul.core.XPairItem insertNewDefaultSelectedItem(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "defaultSelectedItem" element
     */
    com.seedwill.xul.core.XPairItem addNewDefaultSelectedItem();
    
    /**
     * Removes the ith "defaultSelectedItem" element
     */
    void removeDefaultSelectedItem(int i);
    
    /**
     * Gets the "mutiple" attribute
     */
    boolean getMutiple();
    
    /**
     * Gets (as xml) the "mutiple" attribute
     */
    org.apache.xmlbeans.XmlBoolean xgetMutiple();
    
    /**
     * True if has "mutiple" attribute
     */
    boolean isSetMutiple();
    
    /**
     * Sets the "mutiple" attribute
     */
    void setMutiple(boolean mutiple);
    
    /**
     * Sets (as xml) the "mutiple" attribute
     */
    void xsetMutiple(org.apache.xmlbeans.XmlBoolean mutiple);
    
    /**
     * Unsets the "mutiple" attribute
     */
    void unsetMutiple();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.widget.XListBox newInstance() {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.widget.XListBox newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.widget.XListBox parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.widget.XListBox parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.widget.XListBox parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.widget.XListBox parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.widget.XListBox parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XListBox parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XListBox parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XListBox) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
